package com.zyy.admin.service.security;

import com.zyy.admin.entity.SysRole;
import com.zyy.admin.mapper.SysRoleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SysRoleService {
    @Autowired
    private SysRoleMapper sysRoleMapper;

    public SysRole selectById(Integer id){
        return sysRoleMapper.selectById(id);
    }

    public SysRole selectByName(String name) {
        return sysRoleMapper.selectByName(name);
    }
}
